<?php 
    $this->jQuery()->addOnLoad("
        $('.bouton').button();
        $('.boutonAccueil').button({icons: {primary: 'ui-icon-home'}});
        $('.simpleMail').button({
                icons: {
                    primary: 'ui-icon-mail-closed'
                },
                text: false
        });
        $('.boutonModifier').button({icons: {primary: 'ui-icon-pencil'}}); 
        $('.boutonAjouterObjet').button({icons: {primary: 'ui-icon-circle-plus'}}); 
        $('.boutonSauver').button({icons: {primary: 'ui-icon-disk'}}); 
        $('.boutonSupprimer').button({icons: {primary: 'ui-icon-trash'}}); 
        $('.boutonFermer').button({icons: {primary: 'ui-icon-close'}});
        $('.boutonEnvoyer').button({icons: {primary: 'ui-icon-mail-closed'}}); 
     
        $('.iconeSupprimer').button({icons: {primary: 'ui-icon-trash'},text: false});
            
        $('#boutonEnregistrer').on('click', function(){
            var login = '';
            if ( $('#login').val() != '') {
                login = '/login/' + $('#login').val();
            }
            var url = '/accueil/enregistrement' + login + '/mdp/' + $('#mdp').val();
            document.location.href = url;
        });
    
        $('#editionPreference').on('click', function(){
            var url = '/accueil/moncompte';
            document.location.href = url;
        });
            
    ")
    ->addOnLoad("
        $('.multiselect').multiselect();
        $(document).pngFix( );
    ")
	->addOnLoad("
	    $(document).ready(function() {
      $('#images').kwicks({
        max: 600,
        spacing : 2,
        size: 7
      });
      $('ul.sf-menu').sooperfish();
    });
	");
